.advertising-design-page {
  min-height: 100vh;
  background-color: #f5f5f5;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 主内容区域 */
.main-content {
  background: white;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 头部横幅 */
.header-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
  position: relative;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.breadcrumb-text {
  color: #666;
  font-size: 14px;
}

.breadcrumb-link {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

/* 搜索和筛选区域 */
.search-filter-section {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.search-tags {
  display: flex;
  gap: 10px;
}

.search-tag {
  background: #ff6b6b;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #667eea;
}

.search-btn {
  padding: 12px 30px;
  background: #ffd700;
  color: #333;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #ffed4e;
}

.search-results {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

/* 筛选区域 */
.filter-section {
  margin-bottom: 20px;
  padding: 0 20px;
}

.filter-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 14px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.filter-option:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-option.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.new-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 8px;
  font-weight: bold;
}

/* 颜色搜索 */
.color-search-section {
  padding: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.color-search-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 14px;
}

.color-palette {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.color-option {
  width: 30px;
  height: 30px;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: #333;
  transform: scale(1.1);
}

.selected-colors {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.selected-color-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #e9ecef;
}

.color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.color-hex {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  font-family: monospace;
}

.color-percentage {
  font-size: 11px;
  color: #666;
}

.remove-color {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.remove-color:hover {
  background: #ff6b6b;
  color: white;
}

.color-hint {
  color: #999;
  font-size: 12px;
}

/* 排序区域 */
.sort-section {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.sort-option {
  padding: 6px 12px;
  border: none;
  background: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

.sort-option:hover {
  color: #667eea;
}

.sort-option.active {
  color: #667eea;
  font-weight: 600;
}

.material-type {
  display: flex;
  align-items: center;
  gap: 15px;
}

.type-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* 内容网格 */
.content-grid {
  padding: 20px 0;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.template-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.template-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
  transform: scale(1.05);
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.preview-btn,
.download-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-btn {
  background: rgba(255,255,255,0.9);
  color: #333;
}

.preview-btn:hover {
  background: white;
}

.download-btn {
  background: #ff6b6b;
  color: white;
}

.download-btn:hover {
  background: #ff5252;
}

.template-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
}

.badge-original {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.badge-genuine {
  background: #ff6b6b;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.template-info {
  padding: 15px;
}

.template-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 右侧浮动菜单 */
.floating-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-item {
  background: white;
  border-radius: 8px;
  padding: 15px 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 60px;
}

.floating-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.floating-icon {
  font-size: 20px;
  margin-bottom: 5px;
  color: #667eea;
}

.floating-item span {
  font-size: 12px;
  color: #666;
  display: block;
}

/* 返回顶部按钮 */
.fhdb {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #667eea;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fhdb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.fhdb img {
  width: 20px;
  height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    margin: 10px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input-wrapper {
    flex-direction: column;
  }
  
  .filter-options {
    gap: 8px;
  }
  
  .filter-option {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .sort-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .floating-menu {
    right: 10px;
  }
  
  .floating-item {
    min-width: 50px;
    padding: 10px 8px;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .header-banner {
    height: 80px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
  }
  
  .color-palette {
    flex-wrap: wrap;
  }
  
  .floating-menu {
    display: none;
  }
} 